import request from "@/utils/request";
import defaultSettings from "@/settings";

//大小额贷记往账手工处理审核 主页查询
export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/search`,
};

export const details104ApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/searchA104`,
}

export const details307ApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsPubliccontrol/basicInfoQry/CisAgencyChangeNotiQuery/detailsearch`,
}

//大小额贷记往账手工处理审核 查询明细
export function detailsQuery(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/detail?id=${data.id}&pkgNo=${data.pkgNo}`,
    method: "get",
  });
}

//报文号 111.001.01
//审核
export function approve111(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/approve111`,
    method: "post",
    data
  });
}
//拒绝
export function reject111(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/reject111`,
    method: "post",
    data
  });
}

//报文号 112.001.01
//审核
export function approve112(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/approve112`,
    method: "post",
    data
  });
}
//拒绝
export function reject112(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/reject112`,
    method: "post",
    data
  });
}

//报文号 115.001.01
//审核
export function approve115(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/approve115`,
    method: "post",
    data
  });
}
//拒绝
export function reject115(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/reject115`,
    method: "post",
    data
  });
}

//报文号 121.001.01
//审核
export function approve121(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/approve121`,
    method: "post",
    data
  });
}
//拒绝
export function reject121(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/reject121`,
    method: "post",
    data
  });
}
//报文号 122.001.01
//审核
export function approve122(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/approve122`,
    method: "post",
    data
  });
}
//拒绝
export function reject122(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHandWorkApprove/HvpsAndBepsOutgoingHandWorkApprove/reject122`,
    method: "post",
    data
  });
}